package com.celesea.auth.user.v1.controller.resource;

import com.celesea.auth.user.vo.UserVo;
import com.celesea.framework.vo.DictionaryVo;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-30 23:38
 */
public class FormResource {

    private String name;
    private String account;
    private String email;
    private String mobile;
    private Byte statusFlag;
    private DictionaryVo dept;
    private DictionaryVo grade;
    private DictionaryVo leader;
    private List<DictionaryVo> permUsers;
    private List<DictionaryVo> permDepts;

    public FormResource(UserVo user) {
        BeanUtils.copyProperties(user,this);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public DictionaryVo getDept() {
        return dept;
    }

    public void setDept(DictionaryVo dept) {
        this.dept = dept;
    }

    public DictionaryVo getGrade() {
        return grade;
    }

    public void setGrade(DictionaryVo grade) {
        this.grade = grade;
    }

    public DictionaryVo getLeader() {
        return leader;
    }

    public void setLeader(DictionaryVo leader) {
        this.leader = leader;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public List<DictionaryVo> getPermUsers() {
        return permUsers;
    }

    public void setPermUsers(List<DictionaryVo> permUsers) {
        this.permUsers = permUsers;
    }

    public List<DictionaryVo> getPermDepts() {
        return permDepts;
    }

    public void setPermDepts(List<DictionaryVo> permDepts) {
        this.permDepts = permDepts;
    }
}
